package com.liujit.gateway.route.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @description: 路由模型
 * @author: liujun
 * @createTime: 2021/6/9 9:30 上午
 **/
@Data
@ApiModel("路由模型")
public class GatewayRouteDefinition {

    @ApiModelProperty(value = "路由的Id")
    private String id;

    @ApiModelProperty(value = "断言集合")
    private List<GatewayPredicateDefinition> predicates = new ArrayList<>();

    @ApiModelProperty(value = "过滤器集合")
    private List<GatewayFilterDefinition> filters = new ArrayList<>();

    @ApiModelProperty(value = "路由规则转发的目标uri")
    private String uri;

    @ApiModelProperty(value = "路由执行的顺序")
    private int order = 0;
}
